<?php

namespace app\validate;

use share\validate\SceneValidate;

class SendTemplateContentValidate extends SceneValidate{
    protected $rule = [ 
        'id' => 'require',      
        'no' => 'require|length:1,60',
        'content' => 'require|length:1,1500',
        'params' => 'require|length:1,300',
    ];  
    
    protected $sceneRules = [
        'list' => [
            'no' => 'length:1,60',
            'content' => 'name:1,200',
        ],
    ];
  

    protected $scene = [      
        'list' => ['no','content'],
        'del' => ['id'],
    ];
}